package com.erp.pur.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.erp.pur.dao.GroupDetialDao;
import com.erp.pur.domain.GroupDetialDO;
import com.erp.pur.service.GroupDetialService;



@Service
public class GroupDetialServiceImpl implements GroupDetialService {
	@Autowired
	private GroupDetialDao groupDetialDao;
	
	@Override
	public GroupDetialDO get(Long id){
		return groupDetialDao.get(id);
	}
	
	@Override
	public List<GroupDetialDO> list(Map<String, Object> map){
		return groupDetialDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return groupDetialDao.count(map);
	}
	
	@Override
	public int save(GroupDetialDO groupDetial){
		return groupDetialDao.save(groupDetial);
	}
	
	@Override
	public int update(GroupDetialDO groupDetial){
		return groupDetialDao.update(groupDetial);
	}
	
	@Override
	public int remove(Long id){
		return groupDetialDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return groupDetialDao.batchRemove(ids);
	}

    @Override
    public List<GroupDetialDO> getGrooupInfos(Long groupid) {
		return groupDetialDao.getGrooupInfos(groupid);
    }

	@Override
	public List<GroupDetialDO> getGroupDetilInfoProid(Long proid, Long groupid) {
		return groupDetialDao.getGroupDetilInfoProid(proid,groupid);
	}

	@Override
	public int updateOutQty(Long groupId, Long skuid, Integer outQty) {
		return groupDetialDao.updateOutQty(groupId,skuid,outQty);
	}

}
